package com.itheima.homework.homework1;

import java.util.ArrayList;

/**
 *员工类
 * @author
 */
public abstract class Employee {

    //定义抽象方法
    public abstract void showMsg(ArrayList<Employee> employees);

    //工号
    private String workId;

    //姓名
    private String name;

    //部门
    private String dept;

    public Employee() {
    }

    public Employee(String name, String workId, String dept) {
        this.name = name;
        this.workId = workId;
        this.dept = dept;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getWorkId() {
        return workId;
    }

    public void setWorkId(String workId) {
        this.workId = workId;
    }

    public String getDept() {
        return dept;
    }

    public void setDept(String dept) {
        this.dept = dept;
    }
}
